<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel='stylesheet' type='text/css' href='css/style.css' />
<link type="text/css" rel="stylesheet" href="css/menu.css" />
<link type="text/css" rel="stylesheet" href="css/footer.css" />
<link rel='stylesheet' type='text/css' href='css/new-thread.css' />
<title>HiRoom! - Chủ đề mới</title>
<script type='text/javascript' src='js/jquery-2.1.1.js'></script>
<!-- configure confirm -->
<link rel='stylesheet' type='text/css'
	href='apps/confirm/hs_confirm.css' />
<script type='text/javascript' src='apps/confirm/jquery.hs_confirm.js'></script>
<script type='text/javascript'>
	$(document).ready(
			function() {
				$('#form').submit(
						function() {
							if ($('#txtTitle').val().length > 0
									&& $('#txtContent').val().length > 0) {
								return true;
							} else {
								$.openDialog({
									title:'Thông báo',
									text:'Chưa nhập đầy đủ thông tin<br>Vui lòng nhập đầy đủ tiêu đề và nội dung bài viết',
									warning:true,
									confirmText:'Đồng ý',
									color : '#5A5AFF',
									border : 'solid #5A5AFF'
								});
							}
							return false;
						});
			});
</script>
</head>
<body>
	<%@ include file="Header.jsp"%>
	<div id='wrapper'>
		<form id='form' action="thread?do=create&&bid=${param.bid}"
			method='post'>
			<input id="txtTitle" name='title' type='text' placeholder='Tiêu đề' /><br />
			<textarea id='txtContent' name='content' placeholder='Nội dung'></textarea>
			<button type='submit' name='ok' class='button'>Đăng bài</button>
		</form>
	</div>

	<jsp:include page="Footer.jsp"></jsp:include>
</body>
</html>